package com.my.basic;

import java.util.Optional;

/**
 * @author marshal
 * @date 2021-06-02
 */
public class OptionalTest {
    public static void main(String[] args) {
        Optional<Integer> possible = Optional.of(5);
        possible.isPresent(); // returns true
        Integer integer = possible.get();
    }
}
